package com.yidi.system.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author ：Xn
 * @ClassName: SysUserRole
 * @date ：2021-10-19 16:31
 * @describe ：用户和角色关联
 */
@Getter
@Setter
@Entity
@Table(name = "sys_user_role")
@ToString(callSuper=true)
public class SysUserRole implements Serializable
{
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /** 用户ID */
    @Column(name="user_id")
    private Long userId;
    
    /** 角色ID */
    @Column(name="role_id")
    private Long roleId;

}
